IsTime

Basic and Crystal syntax.

Overloads
Arguments
Returns

Boolean value (True or False).

Action

IsTime returns True if the given String or Number value can be converted to a valid Time and returns False otherwise.

Typical use

If you want to convert a String value to a Time using the functions CTime or TimeValue, use the IsTime function first to check if the conversion will succeed. See the examples section of IsDate for an example of this type.

Examples

The following examples are applicable to both Basic and Crystal syntax:

IsTime ("10:30 pm")

Returns True.

IsTime ("September 30,1999")

Returns True since the given String argument is interpreted as 12:00:00 am.

IsTime (3.2)

Also returns True since the given Number argument is interpreted as 3.2 units of 24 hours, which is 4:48:00am.

Comment

This function is similar to the Visual Basic function IsDate, except that it works specifically with Crystal Report's Time type which holds Time values only.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com